<%@ page language="java" pageEncoding="UTF-8" errorPage="/ui/defaultException.jsp"%>
<%@include file="/ui/tags.jsp"%>
<div class="trip-area-step-detail">
	<c:choose>
		<c:when test="${step == 4 }">
			<c:set var="shortcut" value="true"></c:set>
		</c:when>
		<c:when test="${!empty trip && !empty trip.departureCity }">
			<c:set var="shortcut" value="true"></c:set>
		</c:when>
		<c:otherwise>
			<c:set var="shortcut" value="false"></c:set>
		</c:otherwise>
	</c:choose>
	<div class="trip-area-step-show step${step }"></div>
	<div class="trip-area-step-1 ${step == 1 ? 'current' : '' }">
		<c:if test="${shortcut }"><a href="${cpath }/trip/edit/add-destination?tid=${trip.tripId}">1.选择目的地</a></c:if>
		<c:if test="${!shortcut }">1.选择目的地</c:if>
	</div>
	<div class="trip-area-step-1 ${step == 2 ? 'current' : '' }">
		<c:if test="${shortcut }"><a href="${cpath }/trip/edit/add-location?tid=${trip.tripId}">2.选择地点</a></c:if>
		<c:if test="${!shortcut }">2.选择地点</c:if>
    </div>
	<div class="trip-area-step-1 ${step == 3 ? 'current' : '' }">
		<c:if test="${shortcut }"><a href="${cpath }/trip/edit/sort?tid=${trip.tripId}">3.调整与排序</a></c:if>
		<c:if test="${!shortcut }">3.调整与排序</c:if>
	</div>
	<div class="trip-area-step-1 ${step == 4 ? 'current' : '' }">
		<c:if test="${shortcut }"><a href="${cpath }/trip/edit/preview?tid=${trip.tripId}">4.编辑保存</a></c:if>
		<c:if test="${!shortcut }">4.编辑保存</c:if>
	</div>
</div>